xend: insufficient quoting in tapdisk
authorPhilipp Hahn <hahn@univention.de>
Thu, 1 Dec 2011 18:30:29 +0000 (18:30 +0000)
committerPhilipp Hahn <hahn@univention.de>
Thu, 1 Dec 2011 18:30:29 +0000 (18:30 +0000)
commitf065c8c4aa02961b845123c3c07bc79976dfe4b5
tree3f06406cbcad9155ae06b8f257f3a147de645b9e
parentf00d216182450961589c08c6996c00fe1ab0d127
xend: insufficient quoting in tapdisk

insufficient quoting between "tap-ctl list" and xend/server/BlktapController.py

BlktapController splits the output into lines using \n, then each line
at each space, and finally each of these 'words' at the '=', which
fails if the filename contains spaces.

As a quick work-around, the attached patch fixes the problem for me. That is,
until tap-ctl changes it's output format.

A more permanent solution would be to add proper quoting / escaping to tap-ctl
and un-quoting / de-escaping  to BlktapController.py

Signed-off-by: Philipp Hahn <hahn@univention.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/python/xen/xend/server/BlktapController.py